import index from './components/'
import comment from './components/comment'
import User from './components/user'
import News from './components/news'
import Product from './components/product'
import Cate from './components/cate'

export const routes = [
	{
		path: '/', component: index, children: [
		]
	},
	{
		path: '/comment', component: comment, children: [
			{path:'/comment/:newsid', component: comment}
		]
	},
	{
		path: '/user', component: User, children: [
		]
	},
	{
		path: '/news', component: News, children: [
		]
	},
	{
		path: '/product', component: Product, children: [
		]
	},
	{
		path: '/cate', component: Cate, children: [
		]
	},
	{
		path: '*', redirect: '/' 
	}
];